package com.xueshishasha.oa.service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.xueshishasha.oa.model.Department;

public interface DepartmentService {

	public Department getInfo(String id);

	public void updateInfo(Department department);

	public Serializable save(Department department);

	public void delete(Department department);

	public List<Department> getAll();

	public Department getModelById(Serializable id);

	public List<Department> getModels(String hql, Object[] parameters);

	public void saveOrUpdate(Department department);

	public void saveOrUpdateAll(Collection<Department> collection);

	public void update(Department department);

	public List<Department> getByCriteria(DetachedCriteria dc);

}
